﻿namespace Inlycat
{
    /// <summary>
    /// 基础游戏实体
    /// </summary>
    public class BaseGameEntity
    {
        /// <summary>
        /// 实体ID
        /// </summary>
        private int _id;

        /// <summary>
        /// 实体ID
        /// </summary>
        public int ID
        {
            get { return _id; }
        }

        /// <summary>
        /// 处理消息
        /// </summary>
        /// <param name="msg">消息数据</param>
        /// <returns>是否对消息进行了处理</returns>
        public virtual bool HandleMessage(Telegram msg) { return false; }

        /// <summary>
        /// 实体更新方法
        /// </summary>
        public virtual void Update() { }
    }
}